/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.playground.core.entity.boardgame;

/**
 * Represents a move in a board game. A move for a simple game, like checkers, 
 * is composed by: a source square containing the piece to be moved and a 
 * destination square representing the square the piece will be moved to.
 * 
 * In some games there's a move like: "add piece". In this case the source
 * square should be null. Tic-tac-toe is a board game example where "source"
 * will always be null.
 * 
 * @author Tiago Peres
 */
public class Move {
    private Square source;
    private Square destination;

    public Square getSource() {
        return source;
    }

    public void setSource(Square source) {
        this.source = source;
    }

    public Square getDestination() {
        return destination;
    }

    public void setDestination(Square destination) {
        this.destination = destination;
    }
}
